Skip to content

Conversation

@alexgallotta
Copy link
Contributor

  • use configured flush timeout for traces and stats
  • respect the flush timeout, removing tracer retries
  • add logs of timing for shipping data

@alexgallotta alexgallotta requested a review from a team as a code owner February 3, 2025 22:07
datadog-trace-normalization = { git = "https://github.com/DataDog/libdatadog", rev = "eb82b62002a897a8bb9fe1e1cfa49170a9ea6b21" }
datadog-trace-obfuscation = { git = "https://github.com/DataDog/libdatadog", rev = "eb82b62002a897a8bb9fe1e1cfa49170a9ea6b21" }
dogstatsd = { git = "https://github.com/DataDog/libdatadog", rev = "eb82b62002a897a8bb9fe1e1cfa49170a9ea6b21" }
dogstatsd = { git = "https://github.com/DataDog/libdatadog", rev = "5bba5f1415fa07a5a2fc04ec6a3a533909dda1e5" }
Copy link
Contributor

@astuyve astuyve Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but let's bump it to the commit once you merge to main in libdatadog, because my FD leak fix will overwrite this as yours isn't in main yet

@alexgallotta alexgallotta force-pushed the SVLS-6036-respect-timeouts branch 2 times, most recently from b3e15e4 to 19bf675 Compare February 5, 2025 18:58
@alexgallotta alexgallotta force-pushed the SVLS-6036-respect-timeouts branch from 19bf675 to 2d6cb7e Compare February 18, 2025 15:21
@alexgallotta alexgallotta force-pushed the SVLS-6036-respect-timeouts branch from 2d6cb7e to 82f99ec Compare February 20, 2025 18:23
@alexgallotta alexgallotta requested a review from astuyve February 20, 2025 18:24
url: hyper::Uri::from_str(&stats_url).expect("can't make URI from stats url, exiting"),
api_key: Some(api_key.clone().into()),
timeout_ms: Endpoint::DEFAULT_TIMEOUT,
timeout_ms: config.flush_timeout * 1_000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if flush_timeout is not set? Do we have a default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the DD_FLUSH_TIMEOUT or flush_timeout option in the datadog agent, where does this come from?

Comment on lines +171 to +172
1,
100,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic numbers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you just create it once and clone it another place?

Copy link
Contributor

@duncanista duncanista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM – left some nits for some magic numbers

Copy link
Contributor

@astuyve astuyve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, just drop the debug log

@alexgallotta alexgallotta merged commit 3fbeca4 into main Feb 20, 2025
33 checks passed
@alexgallotta alexgallotta deleted the SVLS-6036-respect-timeouts branch February 20, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants